home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.4)
-
- '''A package for parsing, handling, and generating email messages.'''
- __version__ = '3.0.1'
- __all__ = [
- 'base64MIME',
- 'Charset',
- 'Encoders',
- 'Errors',
- 'Generator',
- 'Header',
- 'Iterators',
- 'Message',
- 'MIMEAudio',
- 'MIMEBase',
- 'MIMEImage',
- 'MIMEMessage',
- 'MIMEMultipart',
- 'MIMENonMultipart',
- 'MIMEText',
- 'Parser',
- 'quopriMIME',
- 'Utils',
- 'message_from_string',
- 'message_from_file']
-
- def message_from_string(s, *args, **kws):
- '''Parse a string into a Message object model.
-
- Optional _class and strict are passed to the Parser constructor.
- '''
- Parser = Parser
- import email.Parser
- return Parser(*args, **kws).parsestr(s)
-
-
- def message_from_file(fp, *args, **kws):
- '''Read a file and parse its contents into a Message object model.
-
- Optional _class and strict are passed to the Parser constructor.
- '''
- Parser = Parser
- import email.Parser
- return Parser(*args, **kws).parse(fp)
-
-